import { post } from './index.js'
import { get } from './index.js'

export const GiveFormData = (body) => {
  return get('/', body).then(res => res.data)
}

export const GetUserData = (body) => {
  return get('/userListName', body).then(res => res.data)
}

export const GetUserList = (body) => {
  return get('/userList', body).then(res => res.data)
}


export const GetDetailUserData = (body) => {
  return post('/getDetailUserData', body).then(res => res.data)
}


export const Login = (body) => {
  return post('/login', body).then(res => res.data)
}

export const Register = (body) => {
  return post('/register', body).then(res => res.data)
}

export const changeUserData = (body) => {
  return post('/changeUserData', body).then(res => res.data)
}

export const findUser = (body) => {
  return post('/findUserFromName', body).then(res => res.data)
}

export const deleteUser = (body) => {
  return post('/deleteUser', body).then(res => res.data)
}

export const addUserData = (body) => {
  return post('/addUserData', body).then(res => res.data)
}



